{#include file="top.php"#}

<div class="body" >
    <div class="main fl" >
        <div class="main_banner">
            <img alt="" src="{#$campaign_list.photo1_image1_p#}"/>
        </div>
        <div class="ti_box b_box">
            <div class="hd">
                <h2 class="ir ht"><span><img alt="" src="{#$campaign_list.photo2_image1_p#}" /></span></h2>
            </div>
            <div class="bd" >
                {#foreach  from=$campaign_list.products item=v key=k#}
                <div class="areabox {#if $v.member_type eq 5#}pro{#else#}try{#/if#}">
                    <h2 class="at">{#if $v.member_type eq 5#}尊業體驗團{#else#}試用專區{#/if#}</h2>
                    <div class="lbox">
						<div class="img_box"><p class="img_p"><a href="{#$v._url#}"><span><img src="{#$v._photo_url#}"></span></a></p></div>
                        <a class="btn_s btn_b btn_s_v_detail" href="{#optimize_url('product', 'detail', 'mtype='|cat:$v.member_type|cat:'&pid='|cat:$v.id)#}"><strong>查看產品資料</strong></a>
                    </div>
                    <div class="rbox">
                        <div class="tbox">
                            <table width="100%" border="0" cellpadding="0">
                                <tr>
                                    <td colspan="2" class="tt"><a class="tt" href="{#$v._url#}">{#$v.type_name#}</a></td>
                                </tr>
                                <tr>
                                    <td colspan="2" ><a href="{#$v._url#}">{#$v.name#}</a></td>
                                </tr>
                                <tr>
                                    <td colspan="2"><a href="{#$v._url#}">{#$v.cname#}</a></td>
                                </tr>

                                <tr>
                                <table width="100%" border="0" cellpadding="0">

                                    {#if $v.price#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>價格</td>
                                        <td>${#$v.price#}</td>
                                    </tr>
                                    {#/if#}
                                    {#if $v.attribute_value1#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>實際容量</td>
                                        <td>{#$v.attribute_value1#}</td>
                                    </tr>
                                    {#/if#}
                                    {#if $v.capacity_trial#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>體驗規格</td>
                                        <td>{#$v.capacity_trial#}</td>
                                    </tr>
                                    {#/if#}
                                    {#if $v.body#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>編輯短評</td>
                                        <td>{#nl2br($v.body)#}</td>
                                    </tr>
                                    {#/if#}
                                    {#if !empty($v.tags)&&!empty($v.tag)#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>標籤</td>
                                        <td>{#foreach from=$v.tags item=v1 key=k1#}{#if $k1 neq 0#}, {#/if#}<a class="tag_name" href='/search-product/{#trim($v1)#}'>{#$v1#}</a>{#/foreach#}</td>
                                    </tr>
                                    {#/if#}
                                    <tr class="sep">
                                        <td class="td_red"><span>：</span>需要分數</td>
                                        <td ><span class="font_red">{#if !empty($v.points)#}{#$v.points#}{#else#}/{#/if#}</span><a href="{#optimize_url('help', 'show','page=4')#}" target="_blank"><i class="icon point"></i></a></td>
                                    </tr>
                                </table>
                                </tr>
                            </table>
                        </div>
                        <div class="infobox">
                            <span class="numbox">
                                <sup>名額</sup><span class="num">{#$v.quota#}</span>&nbsp;
                                {#if $v.apply_num#}<sup>申請人數</sup><span class="num">{#$v.apply_num#}</span>&nbsp; {#/if#}
                                <sup>人氣</sup><span class="num">{#$v.click#}</span>
                            </span><a href="{#$v._url#}" class="btn {#$v._class#}"><span>立即申請</span></a>
                            <div class="info">
                                {#if empty($v._difTime.0)#}
                                <strong class="ir"></strong>
                                {#else#}
                                <span>尚餘</span><strong>{#$v._difTime.0#}</strong><sub>{#$dateArr[$v._difTime.1]#}</sub>
                                {#/if#}
                            </div>

                        </div>
                    </div>
                </div>
                {#/foreach#}
            </div>
        </div>
    </div>
    <!-- main-->
    <div class="sidebar">
        {#show_block('b2',1,'','sidebar_ad')#}
        {#show_block('b1',2,'','sidebar_function')#}
        {#show_block('b3',0,'','sidebar_search')#}
        {#show_block('b13',0,'','sidebar_registation')#}
        {#show_block('b4',0,'','sidebar_workshop')#}
        {#show_block('b9',0,'','sidebar_tutorial b_box')#}
        {#show_block('b6',0,'','sidebar_facebook')#}
    </div>
    <!-- sidebar -->

</div></div></div><!--body-->
{#include file="footer.php"#}